package com.gxkj.projects.myshopx;


import java.io.File;

public class MyshopxConfig {

    /**
     * 图片上传路径，必须在项目外部的位置
     */
    private  static final String GOODS_IMG_UPLOAD_DIR ="C:/myshop";
    public static  String getGoodsImgUploadDir(){
        File f = new File(GOODS_IMG_UPLOAD_DIR);
        if(!f.exists()){
            f.mkdirs();
        }
        return f.getAbsolutePath();
    }

}
